<?php
// +----------------------------------------------------------------------
// | 票付通演出类场馆
// +----------------------------------------------------------------------
// | Author: TongBC <501468940@qq.com>
// +----------------------------------------------------------------------
// | Date  : 2015/06/10
// +----------------------------------------------------------------------
// | www.12301.cc/pft_show.html?m=venues
// +----------------------------------------------------------------------
include_once '/var/www/html/new/d/module/common/Db.class.php';
$dbConf = include '/var/www/html/new/d/module/common/db.conf.php';// 远端服务器配置信息

use \PFT\Db;
Db::Conf($dbConf['remote_1']);


$var['venue_id']    = isset($_REQUEST['venue_id']) ? $_REQUEST['venue_id']+0:0;
$var['venue_name']  = '';
$var['venue_thumb'] = 'http://www.12301.cc/tpl/membercard/images/defaultThum.gif';
$var['zone_list']   = array();



// 获取场馆信息

$sql = "select id as venue_id,venue_name,venue_thumb from pft_venues where id={$var['venue_id']} and apply_did={$_SESSION['sid']} order by id desc limit 1";
$dbRow = Db::fetch($sql);
if(is_array($dbRow)) $var = array_merge($var, $dbRow);


// 获取分区列表
$sql = "select id as zone_id,zone_name from pft_roundzone where venue_id={$var['venue_id']}";
$dbRow = Db::fetchAll($sql);
if(is_array($dbRow)) $var['zone_list'] = $dbRow;


// print_r($var);




include '/var/www/html/new/d/tpl/pft_show/venues.html';